<html>
<head><meta charset="utf-8"><title>cargo-bisect-rustc · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html">cargo-bisect-rustc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="174332539"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174332539" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Paul Faria <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174332539">(Aug 28 2019 at 04:57)</a>:</h4>
<p>I'm trying to use cargo-bisect-rustc to figure out which nightly (from a year ago) triggers a certain error in rustdoc. I'm passing a script to the command, with the contents:</p>
<div class="codehilite"><pre><span></span><span class="ch">#!/bin/sh</span>
cargo rustdoc
</pre></div>


<p>And the part that's getting me stuck is that the command always returns that the <code>--start</code> param is regressing. This is occurring even though I can manually install that nightly with rustup, run <code>cargo rustdoc</code> and get a successful output. Any idea why it would report the error incorrectly?<br>
I'm running it like so:<br>
<code>cargo-bisect-rustc --test-dir=docs_crash --script=./bisect-script.sh --start=2018-07-10 --end=2018-09-01 --preserve</code></p>



<a name="174332552"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174332552" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Paul Faria <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174332552">(Aug 28 2019 at 04:57)</a>:</h4>
<p>It gives the output:</p>
<div class="codehilite"><pre><span></span>checking nightly-2018-07-10
std for x86_64-unknown-linux-gnu: 51.82 MB / 51.82 MB [=======...======] 100.00 % 3.56 MB/s
the --start nightly has the regression
</pre></div>



<a name="174332692"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174332692" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Paul Faria <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174332692">(Aug 28 2019 at 05:00)</a>:</h4>
<p>And this is the rustup version:</p>
<div class="codehilite"><pre><span></span>$ rustup override set nightly-2018-07-10
...
$ cargo --version
cargo 1.29.0-nightly (af9e40c26 2018-07-05)
$ cargo rustdoc
    Checking docs_fail v0.1.0 (file:///home/pfaria/projects/docs_crash/lib/docs_fail)
 Documenting docs_crash v0.1.0 (file:///home/pfaria/projects/docs_crash)
    Finished dev [unoptimized + debuginfo] target(s) in 0.33s
</pre></div>



<a name="174465953"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174465953" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174465953">(Aug 29 2019 at 15:41)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="116122">@simulacrum</span></p>



<a name="174465956"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174465956" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174465956">(Aug 29 2019 at 15:41)</a>:</h4>
<p>(I have no idea :)</p>



<a name="174466078"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174466078" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174466078">(Aug 29 2019 at 15:42)</a>:</h4>
<p>Hm, yeah, that does seem strange. I think there should be a way to show output (<code>--show-output</code> perhaps?) maybe that would point at the problem</p>



<a name="174466085"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174466085" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174466085">(Aug 29 2019 at 15:42)</a>:</h4>
<p>I seem to recall the script needing to use $CARGO and such though</p>



<a name="174466092"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174466092" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174466092">(Aug 29 2019 at 15:43)</a>:</h4>
<p>maybe I'm remembering wrong though</p>



<a name="174466111"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174466111" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174466111">(Aug 29 2019 at 15:43)</a>:</h4>
<p><span class="user-mention" data-user-id="116114">@Paul Faria</span> ^</p>



<a name="174468103"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174468103" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Paul Faria <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174468103">(Aug 29 2019 at 16:08)</a>:</h4>
<p>Thanks, I'll try that out when I get home tomorrow</p>



<a name="174548702"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/cargo-bisect-rustc/near/174548702" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Paul Faria <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/cargo-bisect-rustc.html#174548702">(Aug 30 2019 at 14:19)</a>:</h4>
<p>So using --prompt helped me realize that cargo was using an unstable option (color) from way back when. I had to add <code>-Z unstable-options</code> to my script. This narrowed it down to 2018-08-21(I think?) It was between commits 20dc0c5c7 and 3bc2ca7e4. I'm trying to bisect to the exact commit manually (since the builds aren't available anymore, I'm trying to manually build the minimal rustdoc to trigger the issue). However, and maybe no one can help here since it's so old, building <code>./x.py --stage=1 src/tools/rustdoc src/libstd</code> takes well over an hour (seems to get stuck on building core). Any idea why that might be the case, or what I can check (config.toml or otherwise) to speed that up? I'll have this running while I work so it's not a big deal if it takes a long time.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>